package com.ln.de1109.demo01;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/9 16:08
 */
public class Test {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory(new Haha());
        Haha instance =(Haha) proxyFactory.getInstance();
        int add = instance.add(1, 2);
        System.out.println(add);
    }
}
